package com.chenwang.measure.model.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * @松 on 2019/8/6 14:41
 * 当前测量任务
 */
public class TaskBean {

    private static TaskBean instance;
    public static  TaskBean getInstance() {
        if (instance == null) {
            synchronized (LocationBean.class) {
                if (instance == null) {
                    instance = new TaskBean();
                }
            }
        }
        return instance;
    }

    public int getRwmxId() {
        return rwmxId;
    }

    public void setRwmxId(int rwmxId) {
        this.rwmxId = rwmxId;
    }



    public String getIdName() {
        return IdName;
    }

    public void setIdName(String idName) {
        IdName = idName;
    }
    private int rwmxId ;//任务编号
    private String IdName;//任务名字

    public List<Segment> getList() {
        return mList;
    }

    public void setList(List<Segment> list) {
        mList = list;
    }

    private List<Segment> mList = new ArrayList<>();//任务段

    //任务段
    public static class Segment{


        public String getStatrPoint() {
            return statrPoint;
        }

        public void setStatrPoint(String statrPoint) {
            this.statrPoint = statrPoint;
        }

        public String getEndPoint() {
            return endPoint;
        }

        public void setEndPoint(String endPoint) {
            this.endPoint = endPoint;
        }

        private String statrPoint; //
        private String endPoint; //
        private int lineType;//测量方式   123直曲折
        private List<String> photos;//图片
        private String multipoint;//曲线 折线 经纬度点；
        private String semaphoreSpace;  //信号机距离
        private int state;// 0未完成  1完成  2两点以测量过无需再测
        private int measureState; //0未测量 1开始点  2结束点  3两点


        public List<String> getPhotos() {
            return photos;
        }

        public int getLineType() {
            return lineType;
        }

        public void setLineType(int lineType) {
            this.lineType = lineType;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }



        public int getLine() {
            return lineType;
        }

        public void setLine(int line) {
            this.lineType = line;
        }

        public String getMultipoint() {
            return multipoint;
        }

        public void setMultipoint(String multipoint) {
            this.multipoint = multipoint;
        }

        public String getSemaphoreSpace() {
            return semaphoreSpace;
        }

        public void setSemaphoreSpace(String semaphoreSpace) {
            this.semaphoreSpace = semaphoreSpace;
        }



        public void setPhotos(List<String> photos) {
            this.photos = photos;
        }




        public String getPhotoEnd() {
            return photoEnd;
        }

        public void setPhotoEnd(String photoEnd) {
            this.photoEnd = photoEnd;
        }

        private String photoEnd;//



    }
}
